package by.grsu.verkhovodko.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import by.grsu.verkhovodko.entity.Passenger;

public class AfterOrder extends WebPage{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2908605808606012381L;

	@SuppressWarnings({ "rawtypes", "serial" })
	public AfterOrder(final Passenger passenger){
	
		super();
		
		add(new Link("mainPage") {
			@Override
			public void onClick() {
				setResponsePage(StartPage.class );
			}
		});

		add(new Link("seeMyBills") {
			@Override
			public void onClick() {
				setResponsePage(new BillListPage(passenger));
			}
		});
	}

}
